package com.lwq.imserver.util;

import java.util.List;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2022/1/29 22:32
 */
public class ListUtil {

    public static Boolean listIsAllEqueal(List<String> list1, List<String> list2) {
        if(list1.size()!= list2.size()) return false;
        for (String s : list1) {
            if(!list2.contains(s)) return false;
        }
        for(String s: list2){
            if(!list1.contains(s)) return false;
        }
        return true;
    }
}
